home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 August: Tool Chest / Apple_Developer_Group_August_1996_Tool_Chest.iso / Sample Code / Snippets / QuickDraw / Imageer 1.0.0d3 / Imageer.make next >
Encoding:
Text File  |  1996-02-27  |  3.1 KB  |  101 lines  |  [TEXT/MPS ]

  1. #-----------------------------------------------------------------------#
  2. #                                                                        #
  3. #    Program:    Imageer                                                    #
  4. #    File:        Imageer.make    -    Make Source                            #
  5. #                                                                        #
  6. #    By:            Jason Hodges-Harris                                        #
  7. #                                                                        #
  8. #    Version:    1.0d2                                                    #
  9. #                                                                        #
  10. #    Copyright:    © 1995-96 Apple Computer, Inc.,                            #
  11. #                    all rights reserved.                                #    
  12. #                                                                        #
  13. #-----------------------------------------------------------------------#
  14.  
  15. AppName            =    'Imageer'
  16. Signature        =    'Im#¢'
  17. projsrc            =    :source:
  18. C                =    SC
  19. obj                =     :object:
  20. SymOptions        =    -mc68020 -sym on 
  21. SymOptions2        =    -sym on -w 
  22. COptions        =    {SymOptions} 
  23. LinkOptions        =    {SymOptions2} # {SegmentMappings} 
  24.  
  25. SegmentMappings    =    -sn INTENV = Main ∂
  26.                     -sn STDCLIB = Main ∂
  27.                     -sn SANELIB = Main ∂
  28.                     -sn StringUtils = Main ∂
  29.                     -sn UtilMain = Main ∂
  30.                     -sn STDIO = Main ∂
  31.                     -sn CSANELib = Main ∂
  32.  
  33.  
  34. {obj}            ƒ    {projsrc}
  35.  
  36. {obj}.c.o        ƒ    {projsrc}.c
  37.     {C}             {COptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  38.  
  39. #------------------------------------------------------------------------------
  40. # These are the objects that we want to link with. If any one of these
  41. # changes, then we invoke the Link command.
  42. #------------------------------------------------------------------------------
  43.  
  44. AppObjects        =    ∂
  45.                     {obj}doevent.c.o ∂
  46.                     {obj}eventloop.c.o ∂
  47.                     {obj}fileCache.c.o ∂
  48.                     {obj}fileIO.c.o ∂
  49.                     {obj}gxGraphics.c.o ∂
  50.                     {obj}imageFilter.c.o ∂
  51.                     {obj}menu.c.o ∂
  52.                     {obj}offscrnGraphics.c.o ∂
  53.                     {obj}start.c.o ∂
  54.                     {obj}windows.c.o
  55.  
  56.                     
  57.                     
  58.  
  59. CSysObjects     =     ∂
  60.                     {Libraries}"IntEnv.o" ∂
  61.                     {CLibraries}"StdCLib.o" ∂
  62.                     {Libraries}"Interface.o" ∂
  63.                     {Libraries}"MacRuntime.o" ∂
  64.                     {Libraries}"ToolLibs.o"
  65.     
  66. {AppObjects}    ƒ    Imageer.make ∂
  67.                     {projsrc}Imageer.app.h ∂
  68.                     {projsrc}Imageer.protos.h ∂
  69.  
  70.  
  71. {AppName}        ƒƒ     ShellForce
  72.  
  73. # With the above rule, {AppName} will always be out of date with respect to
  74. # the non-existent file ShellForce.  This will force the following commands to
  75. # be executed.
  76. ShellForce        ƒ
  77.     BEGIN
  78.         IF "{ShellVersion}" == ""
  79.             ( EVALUATE "`Version`" =~ /MPW Shell≈ ([0-9]+(.[ab0-9]+)+)®1≈/ ) ∑ Dev:Null
  80.             SET ShellVersion "{®1}"
  81.         END
  82.     END ∑ Dev:Null # Output to bit bucket so we don’t see above calculations
  83.  
  84. #------------------------------------------------------------------------------
  85. # Build rule that links our application together. If any of our objects 
  86. # changes, or this makefile changes, then we relink.  The dummy prerequisite
  87. # ShellForce must come before any other prerequisites for {AppName}
  88. #------------------------------------------------------------------------------
  89.  
  90. {AppName}        ƒƒ    {AppObjects}
  91.     Rez -append {projsrc}Imageer.r -o {AppName}
  92.     Link {LinkOptions} -o {Targ} {AppObjects} {CSysObjects}
  93.     SetFile {Targ} -t APPL -c {Signature} -a B
  94.  
  95. #------------------------------------------------------------------------------
  96. # Build rule that creates our resources and adds them to the application
  97. #------------------------------------------------------------------------------
  98.  
  99. {AppName}        ƒƒ    Imageer.make ∂
  100.                     {projsrc}Imageer.app.h
  101.